<%
	String serverName = request.getServerName();
	String port = String.valueOf(request.getServerPort());

	String latitude  = request.getParameter("latitude");
	String longitude = request.getParameter("longitude");
	String width = request.getParameter("width");
	String height = request.getParameter("height");
	String contents = request.getParameter("contents");
	String zoom = request.getParameter("zoom");
	String level = request.getParameter("level");
	
	System.out.println("serverName" + serverName);
	System.out.println("port" + port);
	System.out.println("latitude" + latitude);
	System.out.println("longitude" + longitude);
	System.out.println("width" + width);
	System.out.println("height" + height);
	System.out.println("contents" + contents);
	System.out.println("level" + level);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<title>약도</title>

<link rel="stylesheet" type="text/css" href="/map/css/map.css"/>
<script type="text/javascript" src="http://apis.daum.net/maps/maps3.js?apikey=a678b6c21eb9b7a32be8f4c556f0c66715235c29"></script>
<script type="text/javascript" src="/common/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/map/js/map_main.js"></script>
<script type="text/javascript" src="js/missa_main.js"></script>
<link rel="stylesheet" type="text/css" href="css/missA.css"/>
</head>
<body>
<form name="rvFrm" method="post">
<div id="wrap_map">
<div id="map"></div>
<div id="rv">
	<div id="rvHeader">
		<div id="rvAddr"></div>
		<div id="rvClose"></div>
	</div>
	<iframe src="" id="rv_frame" name="rv_frame" scrolling="no" frameborder="0" width="0" height="0"></iframe>
</div>
<%--
<div id="companyBi"><img src="" id="companyBiImg"/></div>
 --%>
</div>
</form>
<script type="text/javascript">
window.onload = function() {
	extendPanel("wrap_map", '<%=width%>', '35');
	<%--
	showBi("companyBi", '<%=width%>');
	--%>

	var po = new daum.maps.LatLng(<%=latitude%>, <%=longitude%>); 
	var map = new daum.maps.Map(document.getElementById('map'), { 
		center: po, 
		level: <%=level%>, 
		mapTypeId: daum.maps.MapTypeId.ROADMAP
	});

	var mapTypeControl = new daum.maps.MapTypeControl();
	map.addControl(mapTypeControl, daum.maps.ControlPosition.TOPRIGHT);
	var zoomControl = new daum.maps.ZoomControl();
	map.addControl(zoomControl, daum.maps.ControlPosition.RIGHT);

	mark = new daum.maps.Marker({
		position : po 
	});

	mark.setMap(map);

	var con = "<div style='padding:5px;'>" + "<%=contents%>" + "</div>";
	if(con != null && con != ""){
		var infoWindow = new daum.maps.InfoWindow({
			position : po,
			content : con,				
			removable : false
		});
		infoWindow.open(map, mark);
	}

	addAddress('<%=latitude%>', '<%=longitude%>');
};

</script>
</body>
</html>
